﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        short iErrorNumber = ShoveEL._Convert.StrToShort(PublicFunction.GetRequest("ErrorNumber"), ErrorNumber.Unknow);
        string Tip = PublicFunction.GetRequest("Tip");
        string ClassName = ShoveEL._Security.Encrypt.UnEncryptString(PublicFunction.GetCallCert(),  PublicFunction.GetRequest("ClassName"));

        labTip.Text = Tip;
        labTipForNoIsuse.Text = Tip;
        labClassName1.Text = ClassName;
        labClassName2.Text = ClassName;

        if ((iErrorNumber == ErrorNumber.NoIsuse) || (iErrorNumber == ErrorNumber.NoData))
        {
            tabError.Visible = false;
            tabErrorForNoIsuse.Visible = true;
        }
        else
        {
            tabError.Visible = true;
            tabErrorForNoIsuse.Visible = false;
        }
    }
}